package com.sc.nft.mapper;

import cn.hutool.core.date.DateTime;
import com.sc.nft.dto.AdminShareProfitCollectDetailsDTO;
import com.sc.nft.dto.AdminShareProfitCollectDetailsPointsDTO;
import com.sc.nft.entity.NewEcologyHatchShareProfit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 新生态分润结算记录表 Mapper 接口
 * </p>
 *
 * @author liGen
 * @since 2024-11-26
 */
@Mapper
public interface NewEcologyHatchShareProfitMapper extends BaseMapper<NewEcologyHatchShareProfit> {


    /**
     * 获取上周分红池
     * @param beginOfWeek
     * @param endOfWeek
     * @return
     */
    //BigDecimal getLastWeekBonusPool(@Param("daoId") Long daoId, @Param("type")Integer type, @Param("beginOfWeek") Date beginOfWeek, @Param("endOfWeek") Date endOfWeek);


    /**
     * 获取上周分红池 熔炼带熔炼藏品
     * @param beginOfWeek
     * @param endOfWeek
     * @return
     */
    BigDecimal getLastWeekBonusPool(@Param("daoId") Long daoId, @Param("type")Integer type, @Param("beginOfWeek") Date beginOfWeek, @Param("endOfWeek") Date endOfWeek,@Param("hatchCollectionId")Long hatchCollectionId);

    AdminShareProfitCollectDetailsPointsDTO getNewSumDistributionPointsGroupTypeByCollectionId(@Param("collectionId") Long collectionId);


}
